package com.huaxin.hxmodulesystem.mapping;

import com.huaxin.hxmodulesystem.dto.request.AddFamilyReqDTO;
import com.huaxin.hxmodulesystem.dto.request.UpdateFamilyReqDTO;
import com.huaxin.hxmodulesystem.dto.response.GetFamilyListRespDTO;
import com.huaxin.hxmodulesystem.models.Family;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface FamilyMapping {
    Family toEntity(AddFamilyReqDTO in);

    void updateEntity(UpdateFamilyReqDTO in, @MappingTarget Family entity);

    GetFamilyListRespDTO toDTO(Family entity);
}
